<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新增</title>
</head>
<body>
  <form action="add" method="post">
    <table>
      <tr>
        <td>员工姓名：</td>
        <td><input type="text" name="ename"></td>
      </tr>
      <tr>
        <td>入职日期：</td>
        <td><input type="text" name="hiredate"></td>
      </tr>
      <tr>
        <td>薪资待遇：</td>
        <td><input type="text" name="sal"></td>
      </tr>
      <tr>
        <td>部门：</td>
        <td><select name="deptno">
          <option th:each="d:${dept}" th:value="${d.deptno}" th:text="${d.dname}">部门</option>
        </select></td>
      </tr>
      <tr>
        <td><input type="submit" value="提交"></td>
      </tr>

    </table>

  </form>
</body>
</html>